package com.wing.warehouse.feign;


import com.wing.common.utils.JsonResult;
import com.wing.warehouse.model.response.SelContactInfoAuthVO;
import com.wing.warehouse.model.response.WarehouseUserAuthVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "${warehouse.appName}", fallback = WarehouseUserClientFallback.class)
//@FeignClient(name = "cloud-warehouse-server-ruizhi", fallback = WarehouseUserClientFallback.class)
public interface WarehouseUserClient {

    @GetMapping(value = "/warehouse/admin/user/getByUsername", params = "account")
    JsonResult<SelContactInfoAuthVO> findUserByUsername(@RequestParam("account") String account);
}
